package my.framework.mapper;

import my.framework.entity.Auction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:雷淑娥
 * @Date:2024/12/16 9:07
 * version:1.0
 */
public interface AuctionMapper {
    /**
     * 获取总记录数
     */
    public int getCount(@Param("auctionEntity") Auction auction);

    /**
     * 获取每页显示的记录
     * @param auction  查询条件
     * @param pageBegin  从哪条记录开始
     * @param pageSize   每页显示多少条记录
     * @return
     */
    public List<Auction> getPageList(@Param("auctionEntity") Auction auction, @Param("pageBegin") int pageBegin, @Param("pageSize") int pageSize);
}
